package com.boctech.yxt.authcenter.entity;


import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.util.List;
@Data
@ConfigurationProperties("yxt.jwt")
public class JwtProperties {

    //JWT密钥
    private String secret;

    //JWT有效时间
    private Long expiration;

    //前端向后端传递JWT时使用HTTP的header名称
    private String header = "token";

    //是否关闭csrf跨站攻击防御功能
    private Boolean csrfDisabled = true;

    //用户获取JWT令牌发送的用户名参数名称
    private String userParamName = "username";

    //用户获取JWT令牌发送的密码参数名称
    private String pwdParamName = "password";

    //权限全面开放的接口，不需要JWT令牌就可以访问
    private String[] permitAllURI;


}
